package com.lazy.core.entity;

import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;

@Table(name = "activity_info")
@Data
public class ActivityInfo {
    @Id
    private Long id;

    /**
     * 标题
     */
    @NotBlank( message = "title")
    private String title;

    /**
     * 活动分类
     */
    @Column(name = "activity_classification")
    private String activityClassification;

    /**
     * 活动时间 start
     */
    @Column(name = "activity_start_time")
    @NotBlank( message = "activityStartTime")
    private String activityStartTime;

    /**
     * 活动时间 end
     */
    @Column(name = "activity_end_time")
    @NotBlank( message = "activityEndTime")
    private String activityEndTime;

    /**
     * 报名时间 start
     */
    @Column(name = "enter_start_time")
    @NotBlank( message = "enterStartTime")
    private String enterStartTime;

    /**
     * 报名时间 end
     */
    @Column(name = "enter_end_time")
    @NotBlank( message = "enterEndTime")
    private String enterEndTime;

    /**
     * 活动方式
     */
    @Column(name = "activity_type")
    private String activityType;

    /**
     * 省
     */
    @Column(name = "acitvity_address_province")
    private String acitvityAddressProvince;

    /**
     * 市
     */
    @Column(name = "acitvity_address_city")
    private String acitvityAddressCity;

    /**
     * 区
     */
    @Column(name = "acitvity_address_region")
    private String acitvityAddressRegion;

    /**
     * 详细
     */
    @Column(name = "acitvity_address_detail")
    private String acitvityAddressDetail;

    /**
     * 标签
     */
    @Column(name = "activity_label")
    private String activityLabel;

    /**
     * 图片
     */
    private String picture;

}